package com.piggy.logi.sys.service;

import com.piggy.common.core.web.page.IServicePlus;
import com.piggy.common.core.web.page.TableDataInfo;
import com.piggy.logi.sys.bo.LogiWaybillAgentPayQueryBo;
import com.piggy.logi.sys.bo.LogiWaybillAgentPayRecordEditBo;
import com.piggy.logi.sys.domain.LogiWaybillAgentPay;
import com.piggy.logi.sys.domain.LogiWaybillAgentPayRecord;
import com.piggy.logi.sys.vo.LogiWaybillAgentPayVo;

import java.util.List;

/**
 * 代收货款Service接口
 *
 * @author fengxy
 * @date 2023/10/17 21:52
 **/
public interface ILogiWaybillAgentPayService extends IServicePlus<LogiWaybillAgentPay> {

    /**
     * 查询应收列表
     **/
    TableDataInfo<LogiWaybillAgentPayVo> queryPageList(LogiWaybillAgentPayQueryBo bo);

    /**
     * 获取应收详情
     **/
    LogiWaybillAgentPayVo queryById(Long id);

    /**
     * 确认收款
     **/
    void confirmPay(LogiWaybillAgentPayRecordEditBo bo);

    /**
     * 查询收款记录
     **/
    List<LogiWaybillAgentPayRecord> payList(Long id);

    /**
     * 修改收款记录
     **/
    void updateRecord(LogiWaybillAgentPayRecordEditBo bo);

    /**
     * 删除收款记录
     **/
    void deleteRecord(Long id);

    /**
     * 确认结清
     **/
    void confirmSettle(Long id);

    /**
     * 取消结清
     **/
    void cancelSettle(Long id);

    /**
     * 通过唯一键删除数据
     */
    void removeByUK(Long deptId, Long waybillId);
}
